package sjd.ahsj.springbootmybatisplusoracle.service.impl;

import sjd.ahsj.springbootmybatisplusoracle.entity.BaseUser;
import sjd.ahsj.springbootmybatisplusoracle.mapper.BaseUserMapper;
import sjd.ahsj.springbootmybatisplusoracle.service.IBaseUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 会员 服务实现类
 * </p>
 *
 * @author zhanghaogao
 * @since 2018-09-18
 */
@Service
public class BaseUserServiceImpl extends ServiceImpl<BaseUserMapper, BaseUser> implements IBaseUserService {

    /**
     * 增加金币
     *
     * @param userId
     * @param amount
     * @return
     */
    @Override
    public int addAmount(Long userId, Long amount) {
        return baseMapper.addAmount(userId, amount);
    }
}
